﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using HRM.DAL.DAO;

namespace HRM.Models
{
    public class Employee
    {
        public int EmployeeId { get; set; }
        [Required(ErrorMessage = "You have missed Employeer Name!")]
        public string Name { get; set; }
        [DisplayName("Father's Name")]
        [Required]
        public string FathersName { get; set; }
        [DisplayName("Mother's Name")]
        [Required]
        public string MothersName { get; set; }
        [Required]
        public string Address { get; set; }
        [Required]
        public string Sex { get; set; }
        [DisplayName("Blood Group")]
        public string Blood { get; set; }
        public string Email { get; set; }
        [Required]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
        [DisplayName("Date of Birth")]
        public DateTime DOB { get; set; }
        [Required]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
        [DisplayName("Joining Date")]
        public DateTime JoiningDate { get; set; }
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:MM/dd/yyyy}")]
        [DisplayName("Contact Finish Date")]
        public DateTime ContractFinishDate { get; set; }
        [DisplayName("Lats Exam ")]
        public string Education { get; set; }
        public string Resume { get; set; }
        public string Skill { get; set; }
        public string Nationality { get; set; }
        [DisplayName("National ID No.")]
        public string NID { get; set; }
        public string Status { get; set; }

        [DisplayName("Job  Catagory")]
        public int CatagoryID { get; set; }
        [DisplayName("Assign Project")]
        public int ProjectID { get; set; }
        [DisplayName("Designation")]
        public int DesignationID { get; set; }

        public Code Code { get; set; }
        public Catagory Catagory { get; set; }
        public Project Project { get; set; }
        public Designation Designation { get; set; }
        public ICollection<Certificate> Certificates { get; set; }
      //  public ICollection<Evaluation> Evaluations { get; set; }
       // public Increment Increment { get; set; }

    }
}